|
|
this image is working sample what I'm working on
this is achived from such code:
#declare L=<2.0, 2.0, -5.0>;
camera { location L direction 1.5*z right 4/3*x look_at 0 }
light_source { <2,-2,-1.1> }
light_source { L color rgb 0.7 }
#declare Map=color_map{[0 color rgb 1][0.5 color rgb 0.5][1 color rgb
1]}
#declare Pigment=pigment{gradient y color_map{Map}}
#declare Texture=texture{pigment{Pigment} scale y/40}
deform
{
/* define type of deformation and base object */
turn box{-1 1 texture{Texture}}
/* define container */
contained_by { cylinder{ <0,-1,0> <0,1,0> 3 }}
/* optional parameters for all deformations */
accuracy 0.05
normal_accuracy 3, 0.01
normal_weighted
/* parameters proper for type of deformation */
full_after 8
}
ABX
Post a reply to this message
Attachments:
Download 'twist.jpg' (53 KB)
Preview of image 'twist.jpg'
|
|